using ColorFillGame.Domain.Entities;

namespace ColorFillGame.Domain.Repositories;

public interface IPlayerRepository
{
    Task<Player?> GetByIdAsync(Guid id);
    Task<Player?> GetByConnectionIdAsync(string connectionId);
    Task<IEnumerable<Player>> GetByGameIdAsync(Guid gameId);
    Task AddAsync(Player player);
    Task UpdateAsync(Player player);
    Task DeleteAsync(Guid id);
    Task SaveChangesAsync();
}